package com.biwin.common.app.basic;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.json.JSONUtil;
import com.biwin.common.api.basic.IBwObject;

import java.util.Map;

/**
 * TODO
 *
 * @author biwin
 * @since 0.0.1
 */
public class BwObject implements IBwObject {
    @Override
    public Map<String, Object> toMap() {
        return BeanUtil.beanToMap(this);
    }

    @Override
    public String toJson() {
        return JSONUtil.toJsonStr(this);
    }
}
